/**
 * 
 */
package com.lgx.common.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

/**
 * @author hezhuo
 * 
 * 图片
 *
 */
@Entity
@Table(name="TS_IMAGE")
public class Image implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4498613827514285889L;

	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator=IdGenerator.TS_IMAGE_ID)
	@TableGenerator(
			name = IdGenerator.TS_IMAGE_ID,
			table = IdGenerator.GENERATOR_TABLE,
			pkColumnName = IdGenerator.GEN_NAME,
			pkColumnValue = IdGenerator.TS_IMAGE_ID,
			valueColumnName = IdGenerator.GEN_VALUE,
			initialValue = 1,
			allocationSize = 1
	)
	private Long id;
	
	/**
	 * 名称
	 */
	private String name;
	
	/**
	 * 标题
	 */
	@Transient
	private String title;
	
	/**
	 * 描述
	 */
	private String description;
	
	/**
	 * 路径
	 */
	private String filePath;
	
	/**
	 * 是否可用
	 */
	private String isDelete;
	
	private Date createDate;
	
	private String createName;
	
	private long size;
	
	/**
	 * 属性1
	 */
	private String prop1;
	
	/**
	 * 属性2
	 */
	private String prop2;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public String getProp1() {
		return prop1;
	}

	public void setProp1(String prop1) {
		this.prop1 = prop1;
	}

	public String getProp2() {
		return prop2;
	}

	public void setProp2(String prop2) {
		this.prop2 = prop2;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}
}
